from django.db import models


# Create your models here.
class catrgorys(models.Model):
    id = models.BigAutoField(verbose_name='ID', primary_key=True)
    category_name = models.CharField(verbose_name='类别名称', max_length=256)
    name = models.CharField(verbose_name='违禁品名称', max_length=256)
    status = models.BooleanField(verbose_name='状态', default=False)

    class Meta:
        db_table = 'contraband_catrgorys'
        verbose_name = '违禁品类别设置'

    def __str__(self):
        info = {"id": self.id,
                "category_name": self.category_name,
                "status": self.status,
                "name": self.name}
        return str(info)